//
//  LeftTableViewCell.m
//  TryFiles
//
//  Created by ChuXiang on 16/1/8.
//  Copyright © 2016年 ChuXiang. All rights reserved.
//

#import "LeftTableViewCell.h"
#import "UIView+UIViewAdditions.h"
//static BOOL changeColor = YES;
@interface LeftTableViewCell ()

@end
@implementation LeftTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {

        self.label = [UILabel new];
        self.label.textAlignment = NSTextAlignmentCenter;
        [self.label setFont:[UIFont fontWithName:@"FZLanTingHei-EL-GBK" size:13]];
        [self addSubview:self.label];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.label.frame = CGRectMake(0, 0, self.width, self.height);
}

- (void)setModel:(CXOUtModel *)model {
    if (_model != model) {
        _model = model;
        }
    self.label.text = model.name;
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}

@end
